<?php
/* @var $this MstCurrencyController */
/* @var $model MstCurrency */


$this->breadcrumbs=array(
	'Mst Currencies'=>array('index'),
	'Manage',
);


Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
	$('.search-form').toggle();
	return false;
});
$('.search-form form').submit(function(){
	$('#mst-currency-grid').yiiGridView('update', {
		data: $(this).serialize()
	});
	return false;
});
");
?>

<h1>Currency</h1>
<a href="<?php echo Yii::app()->createUrl('mstCurrency/create'); ?>" class="btn btn-sm btn-primary">Add New</a><br /><br />



<?php $this->widget('bootstrap.widgets.TbGridView',array(
	'id'=>'mst-currency-grid',
	'dataProvider'=>$model->search(),
	//'filter'=>$model,
	'columns'=>array(
		'id',
		'name',
		'code',
			array(
                'class'=>'bootstrap.widgets.TBButtonColumn',
               'template' => '{view}{update}{delete}',
               'buttons' => array(
               				'view' => array(
								'options'=>array(
								'class'=>'btn btn-small view'
								)
                            ),

               				'update' => array(
								'options'=>array(
								'class'=>'btn btn-small update'
								)
                            ),


                            'delete' => array(
                              'options'=>array(
                                   'class'=>'btn btn-small delete'
                                   ),
                            ),

               ),
            'htmlOptions'=>array('style'=>'width: 150px'),
           )
	),
)); ?>